
book-02:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004005f0 <_init>:
  4005f0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4005f4:	910003fd 	mov	x29, sp
  4005f8:	94000040 	bl	4006f8 <call_weak_fn>
  4005fc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400600:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400610 <.plt>:
  400610:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400614:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf704>
  400618:	f947fe11 	ldr	x17, [x16, #4088]
  40061c:	913fe210 	add	x16, x16, #0xff8
  400620:	d61f0220 	br	x17
  400624:	d503201f 	nop
  400628:	d503201f 	nop
  40062c:	d503201f 	nop

0000000000400630 <exit@plt>:
  400630:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400634:	f9400211 	ldr	x17, [x16]
  400638:	91000210 	add	x16, x16, #0x0
  40063c:	d61f0220 	br	x17

0000000000400640 <perror@plt>:
  400640:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400644:	f9400611 	ldr	x17, [x16, #8]
  400648:	91002210 	add	x16, x16, #0x8
  40064c:	d61f0220 	br	x17

0000000000400650 <__libc_start_main@plt>:
  400650:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400654:	f9400a11 	ldr	x17, [x16, #16]
  400658:	91004210 	add	x16, x16, #0x10
  40065c:	d61f0220 	br	x17

0000000000400660 <_IO_getc@plt>:
  400660:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400664:	f9400e11 	ldr	x17, [x16, #24]
  400668:	91006210 	add	x16, x16, #0x18
  40066c:	d61f0220 	br	x17

0000000000400670 <__gmon_start__@plt>:
  400670:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400674:	f9401211 	ldr	x17, [x16, #32]
  400678:	91008210 	add	x16, x16, #0x20
  40067c:	d61f0220 	br	x17

0000000000400680 <abort@plt>:
  400680:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400684:	f9401611 	ldr	x17, [x16, #40]
  400688:	9100a210 	add	x16, x16, #0x28
  40068c:	d61f0220 	br	x17

0000000000400690 <_IO_putc@plt>:
  400690:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400694:	f9401a11 	ldr	x17, [x16, #48]
  400698:	9100c210 	add	x16, x16, #0x30
  40069c:	d61f0220 	br	x17

00000000004006a0 <ferror@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4006a4:	f9401e11 	ldr	x17, [x16, #56]
  4006a8:	9100e210 	add	x16, x16, #0x38
  4006ac:	d61f0220 	br	x17

Disassembly of section .text:

00000000004006b0 <_start>:
  4006b0:	d280001d 	mov	x29, #0x0                   	// #0
  4006b4:	d280001e 	mov	x30, #0x0                   	// #0
  4006b8:	aa0003e5 	mov	x5, x0
  4006bc:	f94003e1 	ldr	x1, [sp]
  4006c0:	910023e2 	add	x2, sp, #0x8
  4006c4:	910003e6 	mov	x6, sp
  4006c8:	580000c0 	ldr	x0, 4006e0 <_start+0x30>
  4006cc:	580000e3 	ldr	x3, 4006e8 <_start+0x38>
  4006d0:	58000104 	ldr	x4, 4006f0 <_start+0x40>
  4006d4:	97ffffdf 	bl	400650 <__libc_start_main@plt>
  4006d8:	97ffffea 	bl	400680 <abort@plt>
  4006dc:	00000000 	.inst	0x00000000 ; undefined
  4006e0:	004007ac 	.word	0x004007ac
  4006e4:	00000000 	.word	0x00000000
  4006e8:	00400830 	.word	0x00400830
  4006ec:	00000000 	.word	0x00000000
  4006f0:	004008b0 	.word	0x004008b0
  4006f4:	00000000 	.word	0x00000000

00000000004006f8 <call_weak_fn>:
  4006f8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf704>
  4006fc:	f947f000 	ldr	x0, [x0, #4064]
  400700:	b4000040 	cbz	x0, 400708 <call_weak_fn+0x10>
  400704:	17ffffdb 	b	400670 <__gmon_start__@plt>
  400708:	d65f03c0 	ret
  40070c:	00000000 	.inst	0x00000000 ; undefined

0000000000400710 <deregister_tm_clones>:
  400710:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400714:	91014000 	add	x0, x0, #0x50
  400718:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40071c:	91014021 	add	x1, x1, #0x50
  400720:	eb00003f 	cmp	x1, x0
  400724:	540000a0 	b.eq	400738 <deregister_tm_clones+0x28>  // b.none
  400728:	90000001 	adrp	x1, 400000 <_init-0x5f0>
  40072c:	f9446821 	ldr	x1, [x1, #2256]
  400730:	b4000041 	cbz	x1, 400738 <deregister_tm_clones+0x28>
  400734:	d61f0020 	br	x1
  400738:	d65f03c0 	ret
  40073c:	d503201f 	nop

0000000000400740 <register_tm_clones>:
  400740:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400744:	91014000 	add	x0, x0, #0x50
  400748:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40074c:	91014021 	add	x1, x1, #0x50
  400750:	cb000021 	sub	x1, x1, x0
  400754:	9343fc21 	asr	x1, x1, #3
  400758:	8b41fc21 	add	x1, x1, x1, lsr #63
  40075c:	9341fc21 	asr	x1, x1, #1
  400760:	b40000a1 	cbz	x1, 400774 <register_tm_clones+0x34>
  400764:	90000002 	adrp	x2, 400000 <_init-0x5f0>
  400768:	f9446c42 	ldr	x2, [x2, #2264]
  40076c:	b4000042 	cbz	x2, 400774 <register_tm_clones+0x34>
  400770:	d61f0040 	br	x2
  400774:	d65f03c0 	ret

0000000000400778 <__do_global_dtors_aux>:
  400778:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40077c:	910003fd 	mov	x29, sp
  400780:	f9000bf3 	str	x19, [sp, #16]
  400784:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  400788:	39418260 	ldrb	w0, [x19, #96]
  40078c:	35000080 	cbnz	w0, 40079c <__do_global_dtors_aux+0x24>
  400790:	97ffffe0 	bl	400710 <deregister_tm_clones>
  400794:	52800020 	mov	w0, #0x1                   	// #1
  400798:	39018260 	strb	w0, [x19, #96]
  40079c:	f9400bf3 	ldr	x19, [sp, #16]
  4007a0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007a4:	d65f03c0 	ret

00000000004007a8 <frame_dummy>:
  4007a8:	17ffffe6 	b	400740 <register_tm_clones>

00000000004007ac <main>:
  4007ac:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007b0:	910003fd 	mov	x29, sp
  4007b4:	1400000c 	b	4007e4 <main+0x38>
  4007b8:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4007bc:	91014000 	add	x0, x0, #0x50
  4007c0:	f9400000 	ldr	x0, [x0]
  4007c4:	aa0003e1 	mov	x1, x0
  4007c8:	b9401fa0 	ldr	w0, [x29, #28]
  4007cc:	97ffffb1 	bl	400690 <_IO_putc@plt>
  4007d0:	3100041f 	cmn	w0, #0x1
  4007d4:	54000081 	b.ne	4007e4 <main+0x38>  // b.any
  4007d8:	90000000 	adrp	x0, 400000 <_init-0x5f0>
  4007dc:	91238000 	add	x0, x0, #0x8e0
  4007e0:	97ffff98 	bl	400640 <perror@plt>
  4007e4:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  4007e8:	91016000 	add	x0, x0, #0x58
  4007ec:	f9400000 	ldr	x0, [x0]
  4007f0:	97ffff9c 	bl	400660 <_IO_getc@plt>
  4007f4:	b9001fa0 	str	w0, [x29, #28]
  4007f8:	b9401fa0 	ldr	w0, [x29, #28]
  4007fc:	3100041f 	cmn	w0, #0x1
  400800:	54fffdc1 	b.ne	4007b8 <main+0xc>  // b.any
  400804:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400808:	91016000 	add	x0, x0, #0x58
  40080c:	f9400000 	ldr	x0, [x0]
  400810:	97ffffa4 	bl	4006a0 <ferror@plt>
  400814:	7100001f 	cmp	w0, #0x0
  400818:	54000080 	b.eq	400828 <main+0x7c>  // b.none
  40081c:	90000000 	adrp	x0, 400000 <_init-0x5f0>
  400820:	9123c000 	add	x0, x0, #0x8f0
  400824:	97ffff87 	bl	400640 <perror@plt>
  400828:	52800000 	mov	w0, #0x0                   	// #0
  40082c:	97ffff81 	bl	400630 <exit@plt>

0000000000400830 <__libc_csu_init>:
  400830:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400834:	910003fd 	mov	x29, sp
  400838:	a901d7f4 	stp	x20, x21, [sp, #24]
  40083c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf704>
  400840:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf704>
  400844:	91374294 	add	x20, x20, #0xdd0
  400848:	913722b5 	add	x21, x21, #0xdc8
  40084c:	a902dff6 	stp	x22, x23, [sp, #40]
  400850:	cb150294 	sub	x20, x20, x21
  400854:	f9001ff8 	str	x24, [sp, #56]
  400858:	2a0003f6 	mov	w22, w0
  40085c:	aa0103f7 	mov	x23, x1
  400860:	9343fe94 	asr	x20, x20, #3
  400864:	aa0203f8 	mov	x24, x2
  400868:	97ffff62 	bl	4005f0 <_init>
  40086c:	b4000194 	cbz	x20, 40089c <__libc_csu_init+0x6c>
  400870:	f9000bb3 	str	x19, [x29, #16]
  400874:	d2800013 	mov	x19, #0x0                   	// #0
  400878:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  40087c:	aa1803e2 	mov	x2, x24
  400880:	aa1703e1 	mov	x1, x23
  400884:	2a1603e0 	mov	w0, w22
  400888:	91000673 	add	x19, x19, #0x1
  40088c:	d63f0060 	blr	x3
  400890:	eb13029f 	cmp	x20, x19
  400894:	54ffff21 	b.ne	400878 <__libc_csu_init+0x48>  // b.any
  400898:	f9400bb3 	ldr	x19, [x29, #16]
  40089c:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4008a0:	a942dff6 	ldp	x22, x23, [sp, #40]
  4008a4:	f9401ff8 	ldr	x24, [sp, #56]
  4008a8:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4008ac:	d65f03c0 	ret

00000000004008b0 <__libc_csu_fini>:
  4008b0:	d65f03c0 	ret

Disassembly of section .fini:

00000000004008b4 <_fini>:
  4008b4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4008b8:	910003fd 	mov	x29, sp
  4008bc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4008c0:	d65f03c0 	ret
